package com.hellobike.haxing.modules.wms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hellobike.haxing.modules.wms.entity.AsnDetail;
import com.hellobike.haxing.modules.wms.mapper.AsnDetailMapper;
import com.hellobike.haxing.modules.wms.service.IAsnDetailService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: t_wms_asn_detail
 * @Author: haxing-boot
 * @Date:   2020-01-09
 * @Version: V1.0
 */
@Service
public class AsnDetailServiceImpl extends ServiceImpl<AsnDetailMapper, AsnDetail> implements IAsnDetailService {
    @Override
    public List<AsnDetail> getByHeaderId(Long asnHeaderId) {
        AsnDetail detail = new AsnDetail();
        detail.setAsnHeaderId(asnHeaderId);
        Wrapper<AsnDetail> wrapper = new QueryWrapper<>(detail);
        return baseMapper.selectList(wrapper);
    }
}
